<style>
.search-category,
.search-language {
    border: 1px solid #DAD3D3;
    /*height: 30px;*/
    padding: 7px 0 7px 5px;
    margin-left: 5px;
    margin-right: 10px;
    width: 110px;
}
</style>

<div class="main-content">
    <div class="left-panel"></div>
    <div class="panel">
        <?php echo $this->element("backend/left_menu");?>
        <div class="content">
            <div class="title">
                <h2 class="t1">Data params Management</h2>
            </div>
            <?php  echo $this->session->flash(); ?>
            <form action="<?php echo $this->Html->url("/DataParamBs/admin_index");?>" id="table-list-admin-form" method="post" style="overflow-x:scroll">
                <div class="top_action">
                    <br/>
                    <input type="text" value="" class="searh_input" placeholder="Search key" id="input-search" name="input-search"/>
                    <a class="btnsearch" id="btnSearch">
                        <span>Search</span>
                    </a>

                    <a href="<?php echo $this->Html->url("/DataParamBs/admin_add");?>" class="add">
                        <span>Add data</span>
                    </a>

                </div>
                <br/>
                <table cellspacing="0" cellpadding="0" class="display" id="table-list-admin">
                    <thead>
                        <tr class="header">
                            <th class="order" width="5%">
                                <a href="#">#</a>
                            </th>
                            <th>
                                <a href="">ACCOUNT ID</a>
                            </th>
                            <th>
                                <a href="">RR NO</a>
                            </th>
                            <th>
                                <a href="">TARIFF</a>
                            </th>
                            <th>
                                <a href="">SDO No.</a>
                            </th> 
                            <th>
                                <a href="">MR Code</a>
                            </th>
                            <th>
                                <a href="">PIN Code</a>
                            </th>
                            <th>
                                <a href="">Spot Folio</a>
                            </th>
                            <th>
                                <a href="">Reading Date</a>
                            </th>
                            <th>
                                <a href="">Salutation</a>
                            </th>
                            <th>
                                <a href="">OCCUPIED CONSUMER NAME</a>
                            </th>
                            <th>
                                <a href="">OWNER/OCCUPIER/MAINTENANCE/MANAGER</a>
                            </th>

                            <th>
                                <a href="">phone number</a>
                            </th>
                            <th>
                                <a href="">street</a>
                            </th>
                            <th>
                                <a href="">netword operation</a>
                            </th>
                            <th>
                                <a href="">language comunication</a>
                            </th>
                            <th>
                                <a href="">door_no</a>
                            </th>
                            <th>
                                <a href="">HOUSE NAME/APARTMENT NAME /COMPLEX NAME/COMPANY NAME</a>
                            </th>
                            <th>
                                <a href="">OCCUPANT FLOOR DETAILS</a>
                            </th>
                            <th>
                                <a href="">Main</a>
                            </th>
                            <th>
                                <a href="">Cross</a>
                            </th>
                            <th>
                                <a href="">	Block/Stage</a>
                            </th>
                            <th>
                                <a href="">LAYOUT NAME</a>
                            </th>
                            <th>
                                <a href="">SLUM NAME</a>
                            </th>
                            <th>
                                <a href="">Area</a>
                            </th>
                            <th>
                                <a href="">District</a>
                            </th>
                            <th>
                                <a href="">Land Mark</a>
                            </th>

                            <th>
                                <a href="">Add Remarks</a>
                            </th>
                            <th>
                                <a href="">REMARKS</a>
                            </th>
							<th>
                                <a href="">Longitude

</a>
                            </th>
<th>
                                <a href="">Latitude</a>
                            </th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i=1; foreach ($dataPramaBs as $k=>$dataPrama ) {?>
                        <tr>
                            <td>
                                <?php echo $i++; ?>
                            </td>
                            <td><?php echo  h($dataPrama['DataParamB']['account_id']); ?>&nbsp;</td>
                            <td><?php echo  h($dataPrama['DataParamB']['rr_no']); ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['tariff']);  ?>&nbsp;</td>
                            <td><?php echo h($dataPrama['DataParamB']['sdo_no']); ?>&nbsp;</td>
                            <td><?php echo  h($dataPrama['DataParamB']['mr_code']); ?>&nbsp;</td>
                            <td><?php echo h($dataPrama['DataParamB']['pin_code']); ?>&nbsp;</td>
                            <td><?php echo h($dataPrama['DataParamB']['spot_solio']); ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['reading_date']);  ?>&nbsp;</td>
                            <td><?php echo h($dataPrama['DataParamB']['salutation']); ?>&nbsp;</td>
                            <td><?php echo h($dataPrama['DataParamB']['full_name']); ?>&nbsp;</td>
                            <td><?php echo h($dataPrama['DataParamB']['ower_occupier_maintenance_manager']); ?>&nbsp;</td>

                       
                             <td><?php echo h($dataPrama['DataParamB']['phone_number']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['stress']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['network_operator']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['languages_communication']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['door_no']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['house_apartment_complex_company_name']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['occupant_flow_details']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['main_road']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['cross_road']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['block_stage']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['layout_name']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['slum_name']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['area']);  ?>&nbsp;</td>
                             <td><?php echo h($dataPrama['DataParamB']['district']);  ?>&nbsp;</td>

                             <td><?php echo h($dataPrama['DataParamB']['land_mark']);  ?>&nbsp;</td>


                             <td><?php echo h($dataPrama['DataParamB']['remarks']);  ?>&nbsp;</td>

                             <td><?php echo h($dataPrama['DataParamB']['enter_remarks']);  ?>&nbsp;</td>
							 <td><?php echo h($dataPrama['DataParamB']['long_titude']);  ?>&nbsp;</td>

                             <td><?php echo h($dataPrama['DataParamB']['lat_titude']);  ?>&nbsp;</td>
                           
                            <td class="action" nowrap>
                                <a class="edit" title="Edit" href="<?php echo $this->Html->url("/DataParamBs/admin_edit/".$dataPrama['DataParamB']['id']); ?>">Edit</a>
                                <a class="delete" href="<?php echo $this->Html->url("/DataParamBs/admin_delete/".$dataPrama['DataParamB']['id']); ?>" title="Delete" onclick="return confirm('Are you sure you want to delete dataprama id: <?php echo $dataPrama['DataParamB']['id'] ?> ');">Delete</a>
                            </td>
                        </tr>
                        <?php } ?>

                    </tbody>
                </table>
            </form>
            <br />
            <div>
                <?php echo $this->Paginator->prev('',array('tag'=>'a','class' => 'page-far-left','id'=>'prev'),'', array('tag'=>'a','class' => 'page-far-left','id'=>'prev')); ?>
                <div id="page-info">Page
                    <strong>
                        <?php echo $this->request->params['paging']['DataParamB']['page'] ?>
                    </strong>/
                    <?php echo $this->request->params['paging']['DataParamB']['pageCount'] ?>
                </div>
                <?php echo $this->Paginator->next("",array('tag'=>'a','class' => 'page-far-right','id'=>'next'), null, array('tag'=>'a','class' => 'page-far-right','id'=>'next')); ?>

            </div>

        </div>
    </div>
    <div class="right-panel"></div>
    <!-- main.end -->
</div>
<script>
$(".page-far-left").click(function() {

    window.location.href = document.getElementById('prev').href;
});
$(".page-far-right").click(function() {

    window.location.href = document.getElementById('next').href;
});
$('#btnSearch').click(function() {
    $('#table-list-admin-form').submit();
});
</script>